${CC}=/usr/bin/gcc
${LD}=/usr/bin/ld

null:

all: pam_iptables.so
	
pam_iptables.so: pam_iptables.o
	${LD} -x --shared -o $@ $?

pam_iptables.o: pam_iptables.c
	${CC} -fPIC -c $?

pam_iptables.c: pam_iptables.h

install:
	\cp -f pam_iptables.so /lib/security
	
clean:
	rm -rf core *.so *.o	

dist_clean:clean
